package ar.edu.utn.frgp.labtec.actions.cliente;

import ar.edu.utn.frgp.labtec.service.GestionClienteService;

@SuppressWarnings("serial")
public class InitModificarClienteAction extends ClienteAction {

	public String execute(){
		codCliente = null;
		cuit = null;
		razonSocial = null;
		responsable = null;
		domicilio = null;
		codigoPostal = null;
		provincia = null;
		telefono = null;
		fax = null;
		email = null;
		returnAction = null;
		clienteNoEncontrado = "false";
		
		getListaClientes();
		return SUCCESS;
	}
	
	protected void getListaClientes(){
		GestionClienteService clienteService = (GestionClienteService) getContext().getBean("gestionClienteService");
		listClientes = clienteService.getClientes();
		listClientes = formatearDatos(listClientes);
	}
}
